package com.archetype.api.controller;

import com.cellulam.framework.core.model.DataResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;

@RestController
@RequestMapping(value = "/v1/demo")
public class DemoController {

    @GetMapping("test")
    public DataResult<LocalDateTime> test() {
       return DataResult.ok(LocalDateTime.now());
    }
}
